package com.collection.util;

import java.util.Date;

public enum  ReturnCode{
    ERROR(500, "未知错误"), 
    NOT_FOUND(404, "数据未找到"),
    HAS_FOUND(405, "数据已经存在"), 
    PARAM_EMPTY(406,"参数空"),
    SUCCESS(200,"成功"), 
    LP_EMPTY(1001,"得到会员令牌为空"),
    TOKEN_EXPIRE(300, "token过期"), 
    TOKEN_HASUSED(301, "token已经使用"),
    TOKEN_EMPTY(311, "token为空"),
    FAIL_VAILDATE(502, "验证码错误"),
    REQUESTPARAM_BAD(310,"传入参数不合规"),
    
    
    REGISTER_EMPTY(7001,"验证码为空"),
    REGISTER_NOT_FOUND(7002,"验证码未找到"),
    REGISTER_MOBILE_EMPTY(7003,"手机号为空"),
    REGISTER_CAPTCHA_NOT_CORRECT(7004,"验证码不正确"),
    
    
    INVITE_CODE_NOT_FOUND(1002,"邀请码不存在"),
    
    //业务相关
    CAR_NOFOUD(9001,"车辆信息未找到"),
	USER_NOTLOGIN(9002,"用户未登录"),
	USER_NOT_EXIST(9003,"用户不存在"),
	PASSWORD_ERROR(9004, "密码错误") ;
    
    int code;
    String msg;

    private ReturnCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    
    public static void main(String[] args) {
		System.out.println(new Date().getTime());
	}
}
